Method GetByUniqueAsync<TProps>(string, object?, int, CancellationToken)
The object whose [RedbUnique] property holds the given value, or null. One probe of the
partial unique index: the value is canonicalised and hashed exactly as the save path
does it. Throws RedbUniqueKeyDefinitionException when the property is not a unique key.
public Task<RedbObject<TProps>?> GetByUniqueAsync<TProps>(string propertyName, object? value, int depth = 10, CancellationToken cancellationToken = default) where TProps : class, new()